/*************************************
ScreenLoading.h
Created By VietRise on 16/6/2014

*************************************/

#ifndef __SCREENLOADING_H__
#define __SCREENLOADING_H__

#include "cocos2d.h"
#include "SimpleAudioEngine.h"
#include "GameConfig.h"

USING_NS_CC;
using namespace CocosDenshion;

class ScreenLoading : public cocos2d::CCLayer
{
private:
	CCSpriteBatchNode* _gameBatchNode;
	CCSize _screenSize;

	CCSprite* _hammer;
	CCLabelBMFont* _labelLoadingBlack;
	CCLabelBMFont* _labelLoadingWhite;
	CCArray* _holePool;
	CCArray* _mousePool;

	CCAction* _hammerHit;
	CCAction* _hammerMove;
	CCAction* _mouseHide;	

	int _countLetter;

	void createScreen();
	void createPools();
	void createActions();
public:
	~ScreenLoading();
	ScreenLoading();

	virtual bool init();
	static CCScene* scene();
	CREATE_FUNC(ScreenLoading);

	void mouseHide(CCNode* pSender);
	void setLetterLoading();
};

#endif // __SCREENLOADING_H__

